import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    list:[],
    listChildren:[],
    index:0,
  },
  getters: {
  },
  mutations: {
    setList(state,payload){
      state.list=payload
    },
    setListChildren(state,payload){
      state.listChildren=payload
    },
    setindex(state,payload){
      state.index=payload
    }
  },
  actions: {
  },
  modules: {
  }
})
